package cn.alpha.intell.rbtlib.broadcast;

import java.io.Serializable;

/**
 * Created by zhangxiliang on 2016/9/23.
 */
public class AlphaMessage implements Serializable {
    static final long serialVersionUID = 2905499988568426345L;

    private AlphaMsgType msgType;
    private String content;
    private int categroy;

    public AlphaMessage(AlphaMsgType msgType, String content) {
        this.msgType = msgType;
        this.content = content;
    }

    public static AlphaMessage createMessage(AlphaMsgType msgType,String content){

        AlphaMessage alphaMessage = new AlphaMessage(msgType,content);
        return alphaMessage;
    }


    public AlphaMsgType getMsgType() {
        return msgType;
    }

    public void setMsgType(AlphaMsgType msgType) {
        this.msgType = msgType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getCategroy() {
        return categroy;
    }

    public void setCategroy(int categroy) {
        this.categroy = categroy;
    }
}
